import random
i = 5
x = random.randint(1,101)
while i > 0:
    i = i - 1
    y = int (input("请输入一个整数"))
    if x == y:
        print("棒! 你猜对了")
    elif x < y: 
        print("比这个小!")
    elif x > y: 
        print("比这个大!")
if i == 0:
    print("这局你输了! 正确的数是",y)

